﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_16_2021
{
    class ArrayUtil
    {
        public static bool IsNull(string[] arr)
        {
            bool isnull = false;

            if (arr.Length == 0)
            {
                isnull = true;
            }
            else
            {
                int index = 0;
                foreach (var item in arr)
                {
                    if (item.Equals("null"))
                    {
                        index++;
                    }
                }
                if (index == arr.Length)
                {
                    isnull = true;
                }
            }
            return isnull;
        }
    }
}
